﻿function IsNumeric(val) {
    return (val || val===0) && Number(parseFloat(val)) === val;
}
function IsDate(val) {
    return val && Object.prototype.toString.call(val) === "[object Date]";
}
function IsArray(val) {
    return val && Object.prototype.toString.call(val) === '[object Array]';
}
function IsFunction(val) {
    return val && Object.prototype.toString.call(val) === '[object Function]';
}
function IsOfType(val, typeName)
{
    return val && Object.prototype.toString.call(val) === '[object ' + typeName + ']';
}

